package cn.dubito.o2o.service;

import cn.dubito.o2o.domian.dto.ShopExecution;
import cn.dubito.o2o.domian.entity.Shop;
import org.springframework.web.multipart.MultipartFile;

import java.io.File;
import java.io.InputStream;

/**
 * @author liliang
 * @description:
 * @date 2018/4/18.
 */
public interface ShopService {


    /**
     * 获取商铺信息
     *
     * @param id
     * @return shop
     */
    Shop getById(Long id);

    /**
     * 添加商铺
     *
     * @param shop      商铺信息
     * @param imageFile 图片
     * @return 执行结果
     */
    ShopExecution addShop(Shop shop, MultipartFile imageFile);

    /**
     * 更新商铺信息
     *
     * @param shop
     * @param shopInputStream
     * @return execution
     */
    ShopExecution modifyShop(Shop shop, InputStream shopInputStream);
}
